<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div, h1{
            background: #f00;
            width: 200px;
            height: 100px;
            display: inline;
        }
        a, span{
            background: #0f0;
            width: 200px;
            height: 100px;
            display: block;
        }
    </style>
</head>
<body>
    <div>div</div>
    <h1>h1</h1>

    <a href="">aa</a>
    <span>span</span>
</body>
</html>